package com.nandi.emergencyinspection.mvp

import com.nandi.emergencyinspection.bean.FileBean
import com.nandi.emergencyinspection.bean.SubmitTaskBean
import com.tbright.ktbaselibrary.mvp.BaseModel
import com.tbright.ktbaselibrary.mvp.BasePresenter
import com.tbright.ktbaselibrary.mvp.BaseView
import okhttp3.MultipartBody

interface TaskInfoContract {

    abstract class TaskInfoPresenter : BasePresenter<BaseModel, TaskInfoView>() {
        abstract fun acceptTaskAsync(id: String, status: Int)
        abstract fun uploadFile(part: MultipartBody.Part)
        abstract fun submitAsync(submitTaskBean: SubmitTaskBean)
    }

    interface TaskInfoView : BaseView {
        fun showAcceptResult(result: String)
        fun showUploadFileResult(result: FileBean)
        fun showSubmitResult(result: String)
    }
}